<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><?php echo $page_title; ?></title>
        <link rel="stylesheet" href="<?php echo getCssUrl() . 'default.css' ?>"/>
        <link rel="stylesheet" href="<?php echo getAppCssUrl('admin') . 'admin.css' ?>"/>
        <script type="text/javascript" src="<?php echo getJsUrl() . 'mootools-core.js' ?>"></script>
        <script type="text/javascript" src="<?php echo getJsUrl() . 'mootools-more.js' ?>"></script>
    </head>
    <body>
        <div id="menu">
            <?php for($i=0,$j=count($apps);$i<$j;$i++) { ?>
            <?php if($i) { echo "&nbsp;|&nbsp;"; } ?>
            <strong><a href="<?php echo getAppUrl('admin', 'control') . '/app/' . $apps[$i]['name']; ?>"><?php echo ucwords($apps[$i]['name']); ?></a></strong>
            <?php } ?>
            <strong><a style="float: right; color: #f00;" href="<?php echo getAppUrl('admin', 'logout'); ?>">Sign Out</a></strong>
        </div>
        <div id="content">
            <form action="<?php echo getAppUrl('admin', 'control'); ?>" method="post">
                <table border="0" cellpadding="5" cellspacing="0">
                    <caption>Gallery Configuration</caption>
                    <thead>
                        <tr>
                            <th><span>name</span></th>
                            <th><span>value</span></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                            foreach($config as $name => $value) {
                        ?>
                        <tr>
                            <td><?php echo ucwords(str_replace('_', ' ', $name)); ?></td>
                            <td>
                                <input name="<?php echo $name; ?>" value="<?php echo $value; ?>"/>
                            </td>
                        </tr>
                        <?php } ?>
                        <tr>
                            <td class="submit_td" colspan="2">
                                <input type="submit" name="submit_config" value="save"/>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </body>
</html>
